package com.lutzyt.delivery.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 订单状态流水
 */
@Data
@TableName("order_state_flow")
public class OrderStateFlow {
  /**
   *
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  /**
   *
   */
  @TableField("order_id")
  private Integer orderId;
  /**
   * 目标状态
   */
  @TableField("new_state")
  private String newState;
  /**
   * 动作
   */
  @TableField("action")
  private String action;
  /**
   * 创建人
   */
  @TableField("creator_name")
  private String creatorName;
  /**
   * 创建时间
   */
  @TableField("create_time")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  /**
   * 逻辑删除
   */
  @TableField("deleted")
  private Integer deleted;
  /**
   * 版本
   */
  @TableField("fversion")
  private Integer fversion;
  /**
   * 备注
   */
  @TableField("remark")
  private String remark;
}